/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package security;

import java.math.BigInteger;
import java.security.SecureRandom;

/**
 *
 * @author Niels Leguit <niels.leguit at hva.nl>
 * @version $Id: ActivationKey.java,v 1.0 2012/05/01 $
 */
public class ActivationKey {

    /**
    * Generates a random string
    * 
    * @param null
    * @return Random String
    */    
    
    public static String generateActivationKey() {
        
        // dit genereerd de activatie code
        SecureRandom random = new SecureRandom();  
        String actvKey = new BigInteger(130, random).toString(32);  
        return actvKey;
    }
        
}
